package com.luban.util;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.boot.web.servlet.ServletListenerRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;

/**
 * 实现自动配置类
 */
@Configuration
@EnableConfigurationProperties(UtilProperties.class)
public class DateConfig {

	@Autowired
	private UtilProperties utilProperties;

    @Bean
    public DateUtil getUtil(){
        return new DateUtil();
    }


}
